import request from '@/utils/request'

// 获取邮箱配置
export function getEmail() {
    return request({
        url: '/email/smtpCode',
        method: 'get'
    })
}

// 修改邮箱配置
export function updateEmail(data) {
    return request({
        url: '/email/smtpEdit',
        method: 'post',
        data: data
    })
}